@charset "UTF-8";
.video {
  position: fixed;
  top: 0;
  bottom: 0;
  margin: auto;
  z-index: 999;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 1;
  transition: all 0.5s ease;

  video {
    width: 100%;
  }
  
  &.hide {
    opacity: 0;
    z-index: -1;
  }

  &_close {
    width: 30px;
    height: 30px;
    display: inline-block;
    position: absolute;
    right: 20px;
    top: 20px;
    border-radius: 50%;
    border: 2px solid #999;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
      border-color: #ccc;
      &::before,
      &::after {
        background-color: #ccc;
      }
    }

    &::before,
    &::after {
      width: 16px;
      height: 2px;
      background-color: #999;
      content: '';
      display: block;
      position: relative;
      left: 7px;
    }
    &::before {
      transform: rotate(45deg);
      top: 15px;
    }
    &::after {
      transform: rotate(-45deg);
      top: 13px;
    }
  }
}
